package org.ucas.kgraph.annotation;

import org.ucas.kgraph.entity.Term;

import java.lang.annotation.*;

/**
 * 加上注解的Controller方法将会判断对象是否属于当前用户
 */
@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface HasAccess {
  String id() default "id"; //使用该属性来作为找到对应类的Identification
  Class<?> clazz() default Term.class;
}
